package com.example.service;

import com.example.entity.User;

import java.util.List;

public interface UserService {

    // User getUserByUsername(String username);
    User getUserByUserNameAndPassword(String name, String password);

    //boolean getUserByUsername(String username);
    int addUser(String username, String password, String email, String phone, int role);

    Integer getUserRole(int user_id);
    List<User> userList();
    boolean deleteUser(Integer user_id);
    boolean addUser(User user);
    boolean updateUser(User user);
    User getUserById(Integer userId);
    User getUserById(int userId);
    boolean updateUserProfile(Integer userId, String email, String phone);

}
